]> dgit.raspbian.org Git - gnome-shell.git/commit
screenShield: Emit ::screen-lock-shown early with animated fades
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 21 Nov 2025 13:46:03 +0000 (14:46 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 24 Nov 2025 13:43:00 +0000 (14:43 +0100)
commit114e93940c7bc8780c4be0fa12777484c4d77be0
treea19613434992a328b80206fbc0edcbd22dd0142b
parentf0b9a5a85c872a59006aecc33faaa67a6b662555
screenShield: Emit ::screen-lock-shown early with animated fades

If the screen is locked with animatedFade parameter enabled, the
screenShield currently defers the emission of this signal until the
lightbox toggles on. However the lightbox might be prevented from
ever doing that by later input.

If this emission is delayed enough, it will result in ShellDBus
missing the D-Bus timeout for replying to the Lock request, since
it does rely on this signal being emitted in order to reply back.

It does however make sense to keep setting the active state after
the animation, so the inhibitors are synchronized at the point the
lightbox kicks in.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8644
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3971>
(cherry picked from commit 7f84efb1edd652e55441c48af14d19d7d6b15b4e)
js/ui/screenShield.js